package hu.village.utils;

import hu.village.mapper.AdminMapper;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.TimerTask;

@Component
public class TimingSetAccountVisible extends TimerTask {

    @Autowired
    private AdminMapper adminMapper;

    @Getter
    @Setter
    private Integer id;

    public TimingSetAccountVisible(){

    }
    @Override
    public void run(){
        adminMapper.setAccountVisible(id);
    }
}
